package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.DbqPostingsUserEvent;
import cn.powertime.evaluation.mapper.DbqPostingsUserEventMapper;
import cn.powertime.evaluation.service.DbqPostingsUserEventService;
import cn.powertime.evaluation.vo.RespFocusListVo;
import cn.powertime.evaluation.vo.WebReqPostingsSearchEventVo;
import cn.powertime.evaluation.vo.WebRespPostingsEventVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 收藏/关注/点赞/浏览信息表 服务实现类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
@Service
public class DbqPostingsUserEventServiceImpl extends ServiceImpl<DbqPostingsUserEventMapper, DbqPostingsUserEvent> implements DbqPostingsUserEventService {

    @Autowired
    private DbqPostingsUserEventMapper postingsUserEventMapper;

    @Override
    public Page<RespFocusListVo> selectFocusList(Page page, Long userId) {
        return this.postingsUserEventMapper.selectFocusList(page, userId);
    }

    @Override
    public WebRespPostingsEventVo postingsEvent(WebReqPostingsSearchEventVo vo, Long id) {
        return postingsUserEventMapper.postingsEvent(vo,id);
    }

}
